package com.hrpmar.pojo;

import java.util.List;

/**
 * Created by on 2017/11/13.
 * 菜单表
 */
public class Menu implements Comparable<Menu> {
    private Integer menuId;                 //菜单序号
    private String iconSkin;                //菜单图标
    private String module;                  //菜单模块
    private String name;                    //菜单名称
    private Integer sort;                   //菜单排序
    private String url;                     //菜单链接Url
    private Integer pid;                    //菜单父Id

    private List<Menu> children;

    public List<Menu> getChildren() {
        return children;
    }

    public void setChildren(List<Menu> children) {
        this.children = children;
    }

    public Integer getMenuId() {
        return menuId;
    }

    public void setMenuId(Integer menuId) {
        this.menuId = menuId;
    }

    public String getIconSkin() {
        return iconSkin;
    }

    public void setIconSkin(String iconSkin) {
        this.iconSkin = iconSkin;
    }

    public String getModule() {
        return module;
    }

    public void setModule(String module) {
        this.module = module;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public int compareTo(Menu o) {
        return this.getSort()-o.getSort();
    }
}
